<template>
  <div class="searchPage">
    <div class="searchPage-top">
      <div class="searchPage-top-l">
        <span>LOADING NETWORK(READ ONLY)</span>
        <button class="button">CONNECT</button>
      </div>
      <div class="searchPage-top-r">
        <span>FAVOURITES ABOUT</span>
        <language ref="language"  @click="languageClick()"></language>
      </div>
    </div>
    <div class="searchPage-content">
      <img src="../assets/images/index/logo1.png" alt="">
      <span>Breakthrough Domain</span>
      <search></search>
    </div>
  </div>
</template>

<script>
import language from '@/components/views/language.vue';
import search from '@/components/views/search.vue';
export default {
  name: 'searchPage',
  components:{
    search,
    language
  },
  data () {
    return {
      isClick:false,
    }
  },
  methods:{
    languageClick(){
        this.$refs.language.btnClick()
    },
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.searchPage{
  width: 100%;
  height: 100%;
  background-image:url('../assets/images/index/背景图.png');
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: center;
  background-size: 100% 100%;
  padding:0 40px;
  box-sizing:border-box;
-moz-box-sizing:border-box; /* Firefox */
-webkit-box-sizing:border-box; /* Safari */
}
.searchPage-top{
  padding-top: 47px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  
}
/* .searchPage-top-l span,.searchPage-top-r span,.searchPage-top-l .button{
  font-size: 12px;
} */
.searchPage-top-l .button{
  border-radius: 10px;
  border:1px solid #fff;
  padding:0 25px;
  margin-top: 20px;
  cursor: pointer;
}
.searchPage-top-r{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: left;
}
.searchPage-top-r span{
  margin-right: 20px;
  margin-top: 10px;
}
.searchPage-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.searchPage-content .search{
   display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 48px;
  width: 560px;
  background-color: rgba(51, 51, 51, 0.6);
  border-radius: 10px;
}
.searchPage-content img{
  width: 55px;
  height: auto;
}
.searchPage-content span{
  font-size: 20px;
  font-weight: bold;
  margin:48px 0;
}
</style>
